Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
Version: None
Released: Dec. 19, 2008
Python 2.5.3 was released on December 19th, 2008. This is the last bugfix release of Python 2.5. Python 2.5 is now in bugfix-only mode; no new features are being added. According to the release notes, about 80 bugs and patches have been addressed since Python 2.5.2, many …
View Release Notes
Released: April 19, 2007
Python 2.5.1 was released on April 18th, 2007. This is the first bugfix release of Python 2.5. Python 2.5 is now in bugfix-only mode; no new features are being added. According to the release notes, over 150 bugs and patches have been squished since Python 2.5, including …
Released: Oct. 18, 2006
Python 2.4 is now in bugfix-only mode; no new features are being added. At least 80 bugs have been squished since Python 2.4.3, including a number of bugs and potential bugs found by with the Coverity and …
...Windows platform. A Python launcher is a single executable which uses a number of heuristics to locate a Python executable and launch it with a specified command line. Rationale Windows provides "file associations" so an executable can be associated with an extension, allowing for scripts to be executed directly in some contexts (eg., double-clicking the file in Windows Explorer.) Until now, a strategy of "last installed Python wins" has been used and while not ideal, has generally been work...
...xpanded considerably to facilitate tracking of time, mileage, and expenses, not just for project management but also for billing and payroll purposes. Optional modules are available for paper-less expense reporting, advanced user role management, automated billing and payroll, and to facilitate system access for disconnected traveling users. Today, Timesheet is platform-independent, flexible enough to be reconfigured by customers to fit unique organizational needs, and scales to tens of thousand...
...Windows Notes Windows has a GUI installer, various flavors of Windows have "special limitations", and the Windows installer also packs precompiled "foreign" binaries (Tcl/Tk, expat, etc). So Windows testing is tiresome but very necessary. Concurrent with uploading the installer, Thomas installs Python from it twice: once into the default directory suggested by the installer, and later into a directory with embedded spaces in its name. For each installation, he runs the full regression suite fr...
...XP-style environment to advance the Python code base and popular Python-based modules such as the Zope application server, Plone content management system, Twisted framework for asynchronous programming, Docutils structured text processing system, and the Chandler personal information manager. Participation in sprints is free of charge and open to all. Planning for the sprints is taking place on the Python wiki at http://www.python.org/cgi-bin/moinmoin/SprintPlan2004. About Pyth...
...Windows, whereas it creates inheritable pipes on UNIX. The reason is an implementation artifact: os.pipe() calls CreatePipe() on Windows (native API), whereas it calls pipe() on UNIX (POSIX API). The call to CreatePipe() was added in Python in 1994, before the introduction of pipe() in the POSIX API in Windows 98. The issue #4708 proposes to change os.pipe() on Windows to create inheritable pipes. Inheritance of File Descriptors on Windows On Windows, the native type of file objects is handles...
...xposed the "import lock". (New in 2.3a2.) itertools - high speed, memory efficient looping constructs inspired by Haskell and SML. (New in 2.3a2.) (Some improvements in 2.3b1, including subsumption of times() into repeat(), and addition of chain() and cycle().) logging - a flexible, configurable logging package based on log4j and our own PEP 282; written by Vinay Sajip. (New in 2.3a2: warn/WARN renamed to warning/WARNING; logging module actually included in the Windows installer....
...Windows and eventually other Unix-like operating systems. For this reason, we avoided platform-specific implementations and chose cross-platform technologies. Additional development tools used in the project included gcc, Gnu make, latex, pdflatex, latex2html, emacs/xemacs (before Wing was functional), Visual C++ 6, and cygwin. Results Our work on Wing IDE has been quite a success. We were able to develop faster than we originally expected, and to deliver Wing IDE on Linux, Windows 98 through ...
...Windows: QueryPerformanceCounter Windows: GetTickCount(), GetTickCount64() Windows: timeGetTime Solaris: CLOCK_HIGHRES Solaris: gethrtime System Time Windows: GetSystemTimeAsFileTime System time on UNIX Process Time Functions Thread Time Functions Windows: QueryUnbiasedInterruptTime Sleep Functions clock_nanosleep select() Other functions System Standby Footnotes Links Acceptance References Copyright Abstract This PEP proposes to add time.get_clock_info(name), time.monotonic(), ti...
...xposes unichr() at C level. New functions PyErr_SetExcFromWindowsErr() and PyErr_SetExcFromWindowsErrWithFilename(). Similar to PyErr_SetFromWindowsErrWithFilename() and PyErr_SetFromWindowsErr(), but they allow to specify the exception type to raise. Available on Windows. Py_FatalError() is now declared as taking a const char* argument. It was previously declared without const. This should not affect working code. Added new macro PySequence_ITEM(o, i) that directly calls sq_item without reche...
...xpat now detects the expat version if expat.h defines it. A number of additional handlers are provided, which are only available since expat 1.95. In addition, the methods SetParamEntityParsing and GetInputContext of Parser objects are available with 1.95.x only. Parser objects now provide the ordered_attributes and specified_attributes attributes. A new module expat.model was added, which offers a number of additional constants if 1.95.x is used. xml.dom offers the new functions registerDOMImpl...
...Windows: CryptGenRandom() (Windows XP) On Linux, commands to get the status of /dev/random (results are number of bytes): $ cat /proc/sys/kernel/random/entropy_avail 2850 $ cat /proc/sys/kernel/random/poolsize 4096 Why using os.urandom()? Since os.urandom() is implemented in the kernel, it doesn't have issues of user-space RNG. For example, it is much harder to get its state. It is usually built on a CSPRNG, so even if its state is "stolen", it is hard to compute previously generated number...
...xpensive, and a waste if the logger was going to discard the message anyway. To see if a request will be honoured by the logger, the isEnabledFor() method can be used: class Logger: def isEnabledFor(self, lvl): """ Return true if requests at level 'lvl' will NOT be discarded. """ ... so instead of this expensive and possibly wasteful DOM to XML conversion: ... hamletStr = hamletDom.toxml() log.info(hamletStr) ... one can do this: if log.isEnabledF...
...xplicit is important in this case. Be consistent in return statements. Either all return statements in a function should return an expression, or none of them should. If any return statement returns an expression, any return statements where no value is returned should explicitly state this as return None, and an explicit return statement should be present at the end of the function (if reachable): # Correct: def foo(x): if x >= 0: return math.sqrt(x) else: return...